<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<link type="text/css" rel="stylesheet" href="cupertino/estilo.css" />
	<script src="js/calendario.js" type="text/javascript" />
</h:head>
<h:body>
	<h:form id="form">
		<p:growl showDetail="true">
		<p:panel id="panel" header="Cadastro">

			<h:panelGrid columns="1">

				<h:outputLabel for="descricao" value="Descrição: " />
				<p:inputText id="descricao" value="#{unidadeBean.unidade.descricao}"
					requiredMessage="A Descrição é obrigatória" required="true" />
				<p:message for="descricao" id="msgValidacaoDesc" />

				
				<p:commandButton value="Salvar" action="#{unidadeBean.salvar}"
					update="@form" />
			</h:panelGrid>
			</p:panel>
		
		</p:growl>
		</h:form>


</h:body>

</html>